import React, { FC } from "react";
import {
  QuestionCheckTimeDefaultProps,
  QuestionCheckTimePropsType,
} from "./interface";
import { DatePicker, Space, Typography } from "antd";

const { Paragraph } = Typography;
const Component: FC<QuestionCheckTimePropsType> = (
  props: QuestionCheckTimePropsType
) => {
  const { title, placeholder } = { ...QuestionCheckTimeDefaultProps, ...props };
  return (
    <Space direction="vertical">
      <Paragraph strong>{title}</Paragraph>
      <DatePicker showTime placeholder={placeholder} />
    </Space>
  );
};

export default Component;
